package com.lijianlove.keeplearning.dr.support.log.listener;

import com.lijianlove.keeplearning.dr.support.log.event.RunLogEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @author lijian
 * @date 2019/5/1 上午1:12
 */
@Slf4j
@Component
public class RunLogEventListener extends AbstractEventListener {
    @Async("taskExecutor")
    @EventListener
    public void listen(RunLogEvent runLogEvent) {
        log.info("RunLogEventListener {}", runLogEvent);
    }
}
